local packer = require("packer")

packer.startup({
    function(use)
        -- Packer 可以管理自己本身
        use 'zsdfbb/packer.nvim'
        use 'zsdfbb/nvim-tree.lua'
        use 'zsdfbb/plenary.nvim'
        -- 依赖plenary.nvim
        use 'zsdfbb/telescope.nvim'
        -- 语法高亮
        use 'zsdfbb/nvim-treesitter'
        use 'zsdfbb/todo-comments.nvim'
        -- gruvbox 主题
        use 'zsdfbb/gruvbox'
        -- 标签
        use 'zsdfbb/bufferline.nvim'
        -- 代码补全 (fuzz, dict, lsp, path, snippet)
        use 'zsdfbb/cmp-rg'
        use 'zsdfbb/cmp-dictionary'
        use 'zsdfbb/cmp-nvim-lsp'
        use 'zsdfbb/cmp-path'
        use 'zsdfbb/cmp_luasnip'
        use 'zsdfbb/LuaSnip'
        use 'zsdfbb/nvim-cmp'
        -- 代码分析
        use 'zsdfbb/nvim-lspconfig'
        use 'zsdfbb/mason.nvim'
        use 'zsdfbb/mason-lspconfig.nvim'
    end,
    config = {
        -- 并发数限制
        max_jobs = 16,
        -- 自定义源
        git = {
            default_url_format = "https://gitee.com/%s",
        },
        display = {
            open_fn = function()
                return require("packer.util").float({ border = "single" })
            end,
        },
    },
})

